package com.cyy.common.pojo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@Schema(name = "CommentAddReq", description = "评论添加请求体")
public class CommentAddReq implements Serializable {
    @Serial
    private static final long serialVersionUID = 6336221015821569901L;

    @Schema(description = "父id")
    private Integer parentId;

    @Schema(description = "文章id")
    private Integer articleId;

    @Schema(description = "回复人id")
    private Integer replyUserId;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "评论类型 0:评论,1:点赞,2:踩")
    private Integer type = 0;

    @Schema(description = "来源")
    private String source;
}
